#include "fibevent.h"
#include "IocpOperation.h"



IocpOperation::IocpOperation() :m_destination(NULL)
	,m_isAsync(false)
{
	InitOverlapped();
}

IocpOperation::IocpOperation( Reason reason, IocpFiber* destination ) :m_reason(reason)
	,m_destination(destination)
	,m_isAsync(false)
{
	InitOverlapped();
}

IocpOperation::IocpOperation( Reason reason, IocpFiber* destination, bool async ) :m_reason(reason)
	,m_destination(destination)
	,m_isAsync(async)
{
	InitOverlapped();
}

void IocpOperation::InitOverlapped()
{
	memset(&m_overlapped, 0, sizeof(OVERLAPPED));
}
